package com.ykq.service.impl;

import com.ykq.dao.UsersMapper;
import com.ykq.entity.Users;
import com.ykq.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: qy151-ssm01
 * @description:
 * @author: 闫克起2
 * @create: 2022-06-14 15:57
 **/
@Service  //<bean id="userServiceImpl" class="UserServiceImpl"/>
public class UserServiceImpl implements UserService {
    @Autowired
    private UsersMapper usersMapper;

    public Users findByid(Integer userid) {
        Users users = usersMapper.selectByPrimaryKey(userid);
        return users;
    }
}
